package bairui.international.service.impl;

import bairui.international.model.domain.jpa.TB_IndexModuleImg;
import bairui.international.service.Service_IndexModuleImg_Generate;
import org.springframework.stereotype.Service;
import bairui.international.dao.jpa.Repository_IndexModuleImg;

/**
 *
 */
@Service
public class Service_IndexModuleImgImpl_Generate
	implements Service_IndexModuleImg_Generate
{

	
	@org.springframework.beans.factory.annotation.Autowired
	private Repository_IndexModuleImg dao;




	
	
	
	/**
	 * deleteById
	 */
	public void deleteById(
		@com.sh_lianjing.annotation.ParameterName("id") @lombok.NonNull Long id
	) throws Exception {
		getDao().deleteById(id);
	}
	/**
	 * findDeleteById
	 */
	public TB_IndexModuleImg findDeleteById(
		@com.sh_lianjing.annotation.ParameterName("id") @lombok.NonNull Long id
	) throws Exception {
		TB_IndexModuleImg bean = getDao().findById(id).get();
		getDao().deleteById(id);
		return bean;
	}
	/**
	 * deleteByIds
	 */
	public void deleteByIds(
		@com.sh_lianjing.annotation.ParameterName("ids") @lombok.NonNull Long ... ids
	) throws Exception {
		deleteByIds(java.util.Arrays.asList(ids));
	}
	
	/**
	 * deleteByIds
	 */
	public void deleteByIds(
		@com.sh_lianjing.annotation.ParameterName("ids") @lombok.NonNull java.util.List<Long> ids
	) throws Exception {
		for(Long id : ids){
			deleteById(id);
		}
	}
		






	/**
	 * getDao()
	 */
	public bairui.international.dao.jpa.Repository_IndexModuleImg getDao() {
		return dao;
	}

}
